package com.qh.xx;

/**
 * @description:利用断言 进行测试
 * @author: zqh
 * @date: 2021/10/31 16:33
 **/
public class Asserts {
    public static void test(boolean value) {
        try {
            if (!value) {
                throw new Exception("测试未通过");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
